﻿using DapperExtensions.Mapper;

namespace FileStorage.Models.Entity.Mapper
{
    public class EntityMappings
    {
        public class FolderMapper : ClassMapper<Folder>
        {
            public FolderMapper()
            {
                Table("fs_folder");
                //Map(x => x.FolderId).Column("folder_id");
                //Map(x => x.FolderName).Column("folder_name");
                //Map(x => x.FolderCreationDate).Column("folder_creation_date");
                //Map(x => x.FolderCreator).Column("folder_creator");
                //Map(x => x.FolderParent).Column("folder_parent");
                //Map(x => x.FolderConstraint).Column("folder_constraint");
                AutoMap();
            }
        }

        public class NodeMapper : ClassMapper<Node>
        {
            public NodeMapper()
            {
                Table("fs_file");
                //Map(x => x.FileId).Column("file_id");
                //Map(x => x.FileName).Column("file_name");
                //Map(x => x.FileSize).Column("file_size");
                //Map(x => x.FileParentFolder).Column("file_parent_folder");
                //Map(x => x.FileCreationDate).Column("file_creation_date");
                //Map(x => x.FileCreator).Column("file_creator");
                //Map(x => x.FilePath).Column("file_path");
                AutoMap();
            }

        }
    }
}
